import logging,yagmail
def rizhi():
    logging.basicConfig(filename='denglu.log',level=logging.DEBUG,filemode='w+',format='%(message)s->%(asctime)s')

def emil(file):
    emill = yagmail.SMTP(host='smtp.qq.com',user='2410811597@qq.com',password='uzwlvaboffeqecfh')
    emill.send(to='2410811597@qq.com',subject='项目',contents='daima',attachments=file)